package com.dongdongmovie.service;



import com.dongdongmovie.pojo.AdminUser;

import javax.servlet.http.HttpServletRequest;
import java.io.UnsupportedEncodingException;
import java.security.NoSuchAlgorithmException;
import java.util.List;
import java.util.Map;

public interface AdminUser_Service {

    //查寻数据
    List<AdminUser> show();

    //添加数据
    int add(AdminUser a, Integer[] roleIds) throws UnsupportedEncodingException, NoSuchAlgorithmException;

    //根据id查询数据
    AdminUser showbyId(Integer userId);

    //查询用户所处角色
    List<Integer> showroleids(Integer userId);

    //修改数据
    int update(AdminUser a, Integer[] roleIds) throws UnsupportedEncodingException, NoSuchAlgorithmException;

    //删除数据
    int delete(Integer userId);

    //登录
    Map<String, Object> updateshowlogin(AdminUser a) throws UnsupportedEncodingException, NoSuchAlgorithmException;
}
